<div id="content" class="clearfix">
  <div id="content" class="clearfix">
    <h3><?php echo nl2br($this->title); ?></h3>
<?php $form=$this->beginWidget('ActiveForm', array(
	'id'=>'login-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>false,
	),
)); ?>
    <div class="section">
      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="normal">
        <tr>
          <th class="tleft" style='width:40%'>权限组名称</th>
          <th class="tleft" style='width:60%'>操作权限</th>
        </tr>
        <tr VALIGN="Top">
          <td class="tleft" id="select">
             <?php echo $form->dropDownList($model,'role',Authitem::model()->getRoles(),array('size'=>30,'style'=>'width:280px;','onchange'=>'return function(){$(\'#channel:hidden\').val(\'get\'),$(\'#login-form\').get(0).submit();}();','encode'=>false))?>
             <?php echo CHTML::hiddenField('channel')?>
          </td>
          <td class="tleft">
            <?php echo $form->checkBoxList($model,'rights',Authitem::model()->getRights())?>
          </td>
        </tr>
      </table>
      <p class="inquiry">
      	<?php echo CHtml::button('提 交',array('class'=>'btn','onclick'=>'return function(){$(\'#channel:hidden\').val(\'save\'),$(\'#login-form\').get(0).submit();}();'))?>
      </p>
    </div>
<?php $this->endWidget(); ?>
    <!--div.section -->
  </div>
  <!--div#content -->
  <!-- div#content end -->
</div>
<!--div#container -->
